<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="java.util.*,
						org.apache.commons.logging.Log,
						org.apache.commons.logging.LogFactory,
						com.ophelisis.common.util.*,
						com.ophelisis.common.consts.*,
						com.ophelisis.actions.system.*"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="page" uri="/tld/xdp-page.tld"%>

			<%@ include file="/include/gnb.jsp"%>
            <!-- Main Start -->
            <div id="maincontainer">
                <!-- LeftMenu Start -->
                <div id="leftmenu">
                    <%@ include file="/include/lnb.jsp"%>
                </div>
                <!-- Contants Start -->
				<div id="contants">
					<div class="height_10p"></div>
					<div id="ajaxDivList" class="noborder"></div>
				</div>
                <!-- Contants End -->
            </div>
        </div>
        <!-- Footer Start -->
        <div id="footer">
            <%@ include file="/include/footer.jsp"%>
        </div>
    </div>

<script>
var pmModule = {
		initPage: function() {
			this.initPageSize();
		},
		     
		initPageSize: function() {
		    var msg = "";
			
			// warp
			var valueGwpw = getObjectValue("#warp", "width"); 
			var gwpw = (valueGwpw == null) ? 0 : valueGwpw; // 대상 전체 폭
			var valueGwph = getObjectValue("#warp", "height"); 
			var gwph = (valueGwph == null) ? 0 : valueGwph; // 대상 전체 높이
			msg = appendMessage(msg, "#warp");
			
			setObjectValue("#container", "width", Math.round(gwpw - 40));
			
			// container
			var valueGcw = getObjectValue("#container", "width"); 
			var gcw = (valueGcw == null) ? 0 : valueGcw; // 대상 전체 폭
			var valueGch = getObjectValue("#container", "height"); 
			var gch = (valueGch == null) ? 0 : valueGch; // 대상 전체 높이
			msg = appendMessage(msg, "#container");
			
			// contants
			setObjectValue("#contants", "width", Math.round(gcw - 180 - 10));
			msg = appendMessage(msg, "#contants");
			
			// formtitle
			var valueGftw = getObjectValue("#formtitle", "width");
			var gftw = (valueGftw == null) ? 0 : valueGftw; // 대상 전체 폭
			var valueGfth = getObjectValue("#formtitle", "height"); 
			var gfth = (valueGfth == null) ? 0 : valueGfth; // 대상 전체 높이
			
			// formlist
			var valueGccw = getObjectValue("#contants", "width"); 
			var gccw = (valueGccw == null) ? 0 : valueGccw; // 대상 전체 폭
			var valueGcch = getObjectValue("#contants", "height"); 
			var gcch = (valueGcch == null) ? 0 : valueGcch; // 대상 전체 높이
			
			setObjectValue("#formlist1", "width", Math.round(gccw));
			setObjectValue("#formlist1", "height", Math.round(gcch - gfth - 60));
			msg = appendMessage(msg, "#formlist1");
			
			$(".LoggingMessage").html(msg);     
		}
};

$(document).ready(function(){
	pmModule.initPage();
	
	$("#viewLoading").hide();
});

$(window).resize(function(){
	pmModule.initPage();
});
</script>
</body>
</html>
